<?php 
/**
 * 内容管理控制器
 */
class ContentController extends CommonController{
	public function index(){
	    $aid = Q('get.aid',0,'intval');
		$c48cms = M()->join("__article__ a JOIN __category__ c ON a.category_cid=c.cid JOIN __article_data__ ad ON a.aid=ad.article_aid")->where("aid={$aid}")->find();
		//处理总评论数
		$c48cms['total'] = K('Comment')->where("article_aid={$aid}")->count();
		$this->assign('c48cms',$c48cms);
	    $this->dis('content');
	}
}

 ?>